package com.ymttest.database.sqlwapper;

import java.util.List;
import java.util.Map;

import com.ymt.core.tool.Logger;
import com.ymt.database.SqlManager;
import com.ymttest.database.mapping.*;;

/************************************************************************************
 * @File name :
 * @Author : 
 * @Date : 
 * @Copyright : 洋码头
 * 
 ************************************************************************************/
public class YmtProductLimitNumHistory {
	SqlManager manage;

	public YmtProductLimitNumHistory() {
		manage = new SqlManager("intpro");
	}

	
	//查询YmtProductLimitNumHistory
	public List<Map> selectLimitNumHistoryByProductId(String sProductId) throws InterruptedException {
	    List<Map>  iLimitNumHistory = manage.getSelectResults(
	            "com.ymttest.database.mapping.YmtProductLimitNumHistory.selectLimitNumHistoryByProductId", sProductId);
//	    manage.commit();
	    return iLimitNumHistory;
	}


	
	public static void main(String args[]) {
	    try {
	         
	    	YmtProductLimitNumHistory ymtProductLimitNumHistory = new YmtProductLimitNumHistory();           
//	        List<Map> ret = ymtCatalogsIWapper.updatestocknumByCatalogId(1234,"8b6fdc26-d1a5-488d-a0dc-ddedf13b938e");
	    	List<Map>  ret = ymtProductLimitNumHistory.selectLimitNumHistoryByProductId("c3ffa4c9-26db-40a2-810b-9c57313b2107");
	        Logger.debug(ret);
	    } catch (InterruptedException e) {
	        e.printStackTrace();
	    }
	}
	
}
